package com.woniu.user.client;

import com.woniu.result.Result;
import com.woniu.user.client.param.UserAddSelectApplyParam;
import com.woniu.user.client.param.UserAddUserOpinionParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@FeignClient(contextId = "userSelectManageClient", name = "user")
public interface UserSelectManageClient {
    /**
     * 用户参与甄选
     * @param userAddSelectApplyParam
     * @return
     */
    @PostMapping("userApplySelect")
    public Result userApplySelect(@RequestBody UserAddSelectApplyParam userAddSelectApplyParam);

    /**
     * 上传甄选测评文件
     * @param file
     * @return
     * @throws IOException
     */
    @PostMapping(value = "/SelectuploadFile",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Result SelectuploadFile(MultipartFile file) throws IOException;
    /**
     * 用户甄选意见上传
     * @param userOpinionParam
     * @return
     */
    @PostMapping("userAddOpinion")
    public Result userAddOpinion(@RequestBody UserAddUserOpinionParam userOpinionParam);


}
